home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-21 | 952 b | 25 lines | [TEXT/CWIE] |
- //----------------------------------------------------------------------
- //
- // Displays
- //
- //----------------------------------------------------------------------
-
- #include <Displays.h>
-
-
- #define kFudgeFactor 12 // fudge factor for boundary around window
- #define kTitleBarHeight 22 // title bar height
-
- #define TopLeft( r ) ( *(Point *) &(r).top )
- #define BotRight( r ) ( *(Point *) &(r).bottom )
-
- OSErr InstallAEDMNotification(void);
- pascal OSErr DoAEDisplayUpdate(AppleEvent *event,AppleEvent *reply,long refCon);
- OSErr HandleNotification(AppleEvent *event);
- //OSErr HandleDeviceChange(DisplayIDType displayID, Rect *newRect);
- OSErr HandleDeviceChange(GDHandle gd, Rect *newRect);
- Boolean OutOfBoundsRect(GDHandle gd, WindowRef window, Rect screenRect);
- void MoveInbounds(WindowRef window, GDHandle gd, Rect screenRect);
- GDHandle GetGreatestDevice(WindowRef window);
- void GetWindowRect(WindowRef window, Rect *windRect);
-